/*
 * Copyright 2007 Robert Hanson <iamroberthanson AT gmail.com>
 * Copyright 2009-10 Matias Kruk <kruk(dot)matias AT gmail.com>
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.hod.reservgrid.client.model;

import java.util.Date;


/**
 * @gears.table (name=Client, namespace=hoddatabase)
 * @gears.namedQuery (name=FindAll, sql="select :Client order by idClient")
 * @gears.namedQuery (name=ExistsRoomReservationInDate, sql="select :Client where idRoom=? and reservationDate=?")
 * @gears.namedQuery (name=ExistsBedReservationInDate, sql="select :Client where idBed=? and reservationDate=?")
 * @gears.namedQuery (name=ExistsLodgingforBed, sql="select :Client where idBed=? AND ? between CheckIn and CheckOut")
 * @gears.namedQuery (name=ExistsLodgingforRoom, sql="select :Client where idRoom=? AND ? between CheckIn and CheckOut")
 */
public class Client implements GearsDataObject
{
	public static final String FIND_ALL = "FindAll";
	public static final String EXISTS_LODGING_FOR_BED = "ExistsLodgingforBed";
	public static final String EXISTS_LODGING_FOR_ROOM = "ExistsLodgingforRoom";
	public static final String EXISTS_ROOM_RESERVATION_IN_DATE = "ExistsRoomReservationInDate";
	public static final String EXISTS_BED_RESERVATION_IN_DATE = "ExistsBedReservationInDate";


    /**
     * @gears.id (length=10)
     */
    private Integer idClient;
    /**
     * @gears.column
     */        
    private String name;
    /**
     * @gears.column
     */    
    private String surname;
    /**
     * @gears.column
     */    
    private String address;
    /**
     * @gears.column
     */
    private String city;
    /**
     * @gears.column
     */
    private String country;
    /**
     * @gears.column
     */
    private String gender;
    /**
     * @gears.column
     */
    private String ccNumber;
    /**
     * @gears.column
     */
    private String ccCode;
    /**
     * @gears.column
     */
    private String howKnowsUs;
    /**
     * @gears.column
     */
    private Date bornDate;
    /**
     * @gears.column
     */
    private String idNumber;
    /**
     * @gears.column
     */
    private String kindOfId;
    /**
     * @gears.column
     */
    private String nationality;
    /**
     * @gears.column
     */    
    private Boolean active = true;
    
    /**
     * @gears.column
     */    
    private String email;
    
    
    /**
     * @gears.column
     */    
    private Date checkIn;
    
    /**
     * @gears.column
     */    
    private Date checkOut;
    /**
     * @gears.column
     */    
    private Boolean toalla;
    /**
     * @gears.column
     */    
    private Float total;
    /**
     * @gears.column
     */    
    private Boolean pago;
    /**
     * @gears.column
     */    
    private Float voucher = 0f;
    /**
     * @gears.column
     */        
    private Boolean debe;
    /**
     * @gears.column
     */
    private Date reservationDate;
    /**
     * @gears.column
     */
    private Integer numberOfNights;
    /**
     * @gears.column (references=Room(idRoom))
     */    
    private Integer idRoom;
    /**
     * @gears.column (references=Bed(idBed))
     */    
    private Integer idBed; 
    
    
    
    
    
    
	public Boolean getActive() {
		return active;
	}
	public void setActive(Boolean active) {
		this.active = active;
	}
	public void setIdClient(Integer idClient) {
		this.idClient = idClient;
	}
	public Integer getIdClient() {
		return idClient;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setSurname(String surname) {
		this.surname = surname;
	}
	public String getSurname() {
		return surname;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAddress() {
		return address;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmail() {
		return email;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCity() {
		return city;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getCountry() {
		return country;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getGender() {
		return gender;
	}
	public void setCcNumber(String ccNumber) {
		this.ccNumber = ccNumber;
	}
	public String getCcNumber() {
		return ccNumber;
	}
	public void setCcCode(String ccCode) {
		this.ccCode = ccCode;
	}
	public String getCcCode() {
		return ccCode;
	}
	public void setHowKnowsUs(String howKnowsUs) {
		this.howKnowsUs = howKnowsUs;
	}
	public String getHowKnowsUs() {
		return howKnowsUs;
	}
	public void setBornDate(Date bornDate) {
		this.bornDate = bornDate;
	}
	public Date getBornDate() {
		return bornDate;
	}
	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	public String getIdNumber() {
		return idNumber;
	}
	public void setKindOfId(String kindOfId) {
		this.kindOfId = kindOfId;
	}
	public String getKindOfId() {
		return kindOfId;
	}
	public void setNationality(String nationality) {
		this.nationality = nationality;
	}
	public String getNationality() {
		return nationality;
	}
	public void setCheckIn(Date checkIn) {
		this.checkIn = checkIn;
	}
	public Date getCheckIn() {
		return checkIn;
	}
	public void setCheckOut(Date checkOut) {
		this.checkOut = checkOut;
	}
	public Date getCheckOut() {
		return checkOut;
	}
	public void setToalla(Boolean toalla) {
		this.toalla = toalla;
	}
	public Boolean getToalla() {
		return toalla;
	}
	public void setTotal(Float total) {
		this.total = total;
	}
	public Float getTotal() {
		return total;
	}
	public void setPago(Boolean pago) {
		this.pago = pago;
	}
	public Boolean getPago() {
		return pago;
	}
	public void setVoucher(Float voucher) {
		this.voucher = voucher;
	}
	public Float getVoucher() {
		return voucher;
	}
	public void setDebe(Boolean debe) {
		this.debe = debe;
	}
	public Boolean getDebe() {
		return debe;
	}
	public void setReservationDate(Date reservationDate) {
		this.reservationDate = reservationDate;
	}
	public Date getReservationDate() {
		return reservationDate;
	}
	public void setNumberOfNights(Integer numberOfNights) {
		this.numberOfNights = numberOfNights;
	}
	public Integer getNumberOfNights() {
		return numberOfNights;
	}
	public void setIdRoom(Integer idRoom) {
		this.idRoom = idRoom;
	}
	public Integer getIdRoom() {
		return idRoom;
	}
	public void setIdBed(Integer idBed) {
		this.idBed = idBed;
	}
	public Integer getIdBed() {
		return idBed;
	}
    
    
    
    
}
